#ifndef MONEY_H
#define MONEY_H

#include <QWidget>
#include <QtWidgets>
#include <QColor>
#include <QtCharts>
#include <QChartView>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlTableModel>
#include <QSqlQueryModel>
QT_CHARTS_USE_NAMESPACE

namespace Ui {
class money;
}

class money : public QWidget
{
    Q_OBJECT


public:
    explicit money(QWidget *parent = 0);
    ~money();
     QChart * createPieChart() const; // 绘制自定义的饼状图

private slots:


    void on_allToolButton_clicked();

    void on_buyToolButton_clicked();

    void on_sceneToolButton_clicked();

    void on_packageToolButton_clicked();

    void on_dishesToolButton_clicked();

    void on_sexToolButton_4_clicked();

    void on_ageToolButton_5_clicked();


    void on_tabWidget_currentChanged(int index);

private:
    Ui::money *ui;
    int flag = 0;
};

#endif // MONEY_H
